package com.tju.system.service;

import com.tju.system.mapper.MessageMapper;
import com.tju.system.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 11873
 */
@Service
public class MessageService {
    @Autowired
    MessageMapper messageMapper;

    public void addMessage(Message message){
       messageMapper.addMessage(message);
    }

    public void sendMessage(Message message){
        messageMapper.sendMessage(message);
    }

    public List<Message> findMessage(Message message){
      return   messageMapper.findMessage(message);
    }
    
}
